﻿using System;
using System.Collections.Generic;
using System.Text;

namespace curbside.Web.UI.WebControls
{
    /// <summary>
    /// Flash文件（swf）播放器
    /// </summary>
    public class FlashPlayer : System.Web.UI.WebControls.Panel
    {
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            string jsEventCode = @"flashembed('" + this.ClientID + "','" + Src + "');";
            helper.AddStartupScript(this.ClientID, jsEventCode, this.Page);
            base.Render(writer);
        }

        private string src;
        /// <summary>
        /// 设置或获取flash视频src
        /// </summary>
        public string Src
        {
            get { return this.src; }
            set { this.src = value; }
        }
    }
}
